package com.jobs.generic;

import cn.hutool.core.collection.CollectionUtil;

import java.util.Collections;
import java.util.List;

/**
 * @Author 王博
 * @DateTime 2024-08-16 08:55
 */
public class GenericMethodDemo {
    public <E> E get(List<E> list){
        return CollectionUtil.isNotEmpty(list)?list.get(0):null;
    }
}
